package com.ai.networking.netty.client;


import com.ai.entity.comm.SysNetty;
import lombok.extern.slf4j.Slf4j;

/**
 * netty 客户端
 * 蚂蚁舞
 */
@Slf4j
public class BootNettyClientThread extends Thread {

    SysNetty sysNetty;

    public BootNettyClientThread(SysNetty sysNetty) {
        this.sysNetty = sysNetty;
    }

    public void run() {
        try {
//            执行客户端连接任务
            new BootNettyClient().connect(sysNetty);
        } catch (Exception e) {
            log.error(e.getMessage());
//            throw new RuntimeException(e);
        }
    }
}